#include <iostream>
#include <cstdlib>
using namespace std;

int main()
{
  int k = 1, a = 3, n;
 cout << "vvod chisla: " << endl;
  cin >> n;
  while(a <= n)
  {
    a *= 3;
    k++;
  }
 cout << "ctepen=k: " << k << endl;
  system("PAUSE >> NULL");
  return 0;
}
